package switchviz.core.signal;

import switchviz.core.SwitchVizException;
import switchviz.core.alias.AliasFacade;
import switchviz.core.mib.MIBDataModel;
import switchviz.core.mib.MIBFacade;


public class SignalDataModel implements ISignalDataModel
{
	private String _oid = "";
	private MIBDataModel _mibDataModel = null;
	
	public SignalDataModel(String aliasName) throws SwitchVizException
	{
		_oid = AliasFacade.getOid(aliasName);
		_mibDataModel = MIBFacade.getDataModel(_oid);
	}
		
	public String getOid()
	{
		return _oid;
	}

	public boolean isPortRequired()
	{
		return _mibDataModel.getPortRequired();
	}
}
